import {MONITOR_LIST, USER_SAFERANGE, USER_LOG, USER_SIGNCHART, USER_MOVEMENT, ALARM_RECORD, USER_INFO} from '@/services/api'
import {request, METHOD} from '@/utils/request'

export async function monitorList(data = {}) {
    return request(MONITOR_LIST, METHOD.POST, {
        ...data
    })
}
export async function alarmRecord(data = {}) {
    return request(ALARM_RECORD, METHOD.POST, {
        ...data
    })
}
export async function userInfo(data = {}) {
    return request(USER_INFO, METHOD.POST, {
        ...data
    })
}
export async function userSign(data = {}) {
    return request(USER_SIGNCHART, METHOD.POST, {
        ...data
    })
}
export async function userSafeRange(data = {}) {
    return request(USER_SAFERANGE, METHOD.POST, {
        ...data
    })
}
export async function userMovement(data = {}) {
    return request(USER_MOVEMENT, METHOD.POST, {
        ...data
    })
}
export async function userLog(data = {}) {
    return request(USER_LOG, METHOD.POST, {
        ...data
    })
}
export default {
    monitorList,
    alarmRecord,
    userMovement,
    userInfo,
    userSign,
    userSafeRange,
    userLog
}